﻿using MultiLang;
using System;
using System.Collections.Generic;

//using Rsdn.Janus.Core.TextMacros.LocalTimeMacros;

namespace Rsdn.Janus
{
	/// <summary>
	/// Макрос локального времени.
	/// </summary>
	[TextMacrosProvider]
	internal sealed class LocalTimeMacrosProvider : ITextMacrosProvider
	{
		public IEnumerable<ITextMacros> CreateTextMacroses()
		{
			return new[]
				{
					new TextMacros(
						"datetime",                                                     //MLHIDE
						ml.ml_string(1442, "Локальное время"), //Local Time
						serviceProvider => DateTime.Now.ToString(Config.Instance.TagLine.LocalTimeFormat)),
				};
		}
	}
}